$(function() {

	//SOCIAL ICONS HOVER

	$('.fb_icon').hover(function() {
		$(this).attr("src","img/facebook_icon_black.png");				
		}, function() {
		$(this).attr("src","img/facebook_icon.fw.png");		
	});

	$('.tw_icon').hover(function() {
		$(this).attr("src","img/twitter_icon_black.png");				
		}, function() {
		$(this).attr("src","img/twitter_icon.fw.png");		
	});

	$('.go_icon').hover(function() {
		$(this).attr("src","img/google_icon_black.png");				
		}, function() {
		$(this).attr("src","img/google_icon.fw.png");		
	});

	$('#house').hover(function() {
		$(this).attr("src", "img/home_orange.png");
		}, function() {
		$(this).attr("src", "img/home.fw.png");
		});

	//ROTATING BILLBOARD

	function Banner() {
	    setInterval( "slideSwitch()", 5000 );
	}
	Banner();

});

function slideSwitch() {
var $active = $('#billboard div.active');

if ( $active.length == 0 ) $active = $('#billboard div:last');
var $next = $active.next().length ? $active.next() : $('#billboard div:first');  
$active.addClass('last-active');  

$next.css({ "opacity" : "0" })
	.addClass('active')
	.animate({ "opacity" : "1" }, 1000, function() {
		$active.removeClass('active last-active');
	});
}